<!DOCTYPE html>
<html>
<head>
		<meta charset="UTF-8">
		<title>个人信息</title>
		<link rel="stylesheet" type="text/css" href="../css/validator.css"/>
		<script src="../js/jquery-3.1.0.min.js"></script>
		<script src="../js/formValidator.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/formValidatorRegex.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		
						<form action="" method="post" id="form1" class="info-form" name="form1"> 
								<div class="f-input">
									<label for="cname"><span>中文姓名：</span></label> 
									<input type="text" id="cname" name="cname" value="" />
									<div class="tips">
										<div id="cnameTip">
										</div>		
									</div>
								</div>
							
						   </form>
    <script type="text/javascript">
        $(function () {
        	
        	$.formValidator.initConfig({formid:"form1",onerror:function(){alert("校验没有通过，具体错误请看错误提示")},
        	onsuccess:function(){
        	return true;}
        	});
			$("#cname").formValidator({onshow:"请输入中文姓名",onfocus:"请输入中文姓名",oncorrect:"谢谢您的配合"}).functionValidator({fun:isChn});	//------------------------------------------------------

        });
	
    </script>
		
	</body>
</html>
